package parser;

import antlr.RecognitionException;
import java.util.*;

abstract class LoopStmt extends Stmt {
    
    LoopStmt() {
    }

    List<Patch> breaks = new ArrayList<Patch>();
    List<Patch> continues = new ArrayList<Patch>();
        
    void _break(Patch where) {
        breaks.add(where);
    }

    void _continue(Patch where) {
        continues.add(where);  
    }
    
    Stmt suite;
        
    final void setBody(Stmt suite) {
        this.suite = suite;
        yields = suite.yields;
        deletes = suite.deletes;
    }
 
}
